<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib uri="/mytag" prefix="my" %>

<%
   String name=request.getParameter("name");
%>

<my:switch>
    <my:case cond="<%=name.equals("zhangsan")%>">
        <%out.println(name+" is manager!");%>
    </my:case>
    <my:case cond="<%=name.equals("lisi")%>">
        <%out.println(name+" is salesman!");%>
    </my:case>
    <my:default>
        <%out.println(name+" is employee!");%>
    </my:default>
</my:switch>